import request from '@/assets/request.js'
/* 
请求封装说明
表单格式提交 post请求: .post();  get请求: .get();
对象格式提交 post请求: .JSON_Post();
blob 用于导出 post.JSON格式：.blob_post_json();blob_get_json()
 post表单： .blob_post() ;get表单： .blob_get();
delete 删除 对象格式提交 .JSON_delete
put 修改
export function delFourPlusOne(param = {}) { // 删除(主键)
  return request.delete('/investment/four-plus-one/delete/'+ param)
}
添加接口加载动画 
案例 export function api(param = {}, resParams) { //api
  return request.post(url, param, resParams,)
} 
*/


// 用户管理
export function login(param = {}, resParams) { //登录
  return request.JSON_Post('/web/employee/auth/login', param, resParams, { loading: true })
}
export function logout_user(param = {}, resParams) { //登出
  return request.post('/web/employee/auth/login/out', param, resParams, { loading: true })
}
export function updatePassword_user(param = {}, resParams) { //修改密码
  return request.post('/system/user/updatePassword', param, resParams, { loading: true })
}
export function resetPassword_user(param = {}, resParams) { //重置密码
  return request.post('/system/user/resetPassword', param, resParams, { loading: true })
}
export function insert_user(param = {}, resParams) { //新增
  return request.JSON_Post('/system/user/insert', param, resParams, { loading: true })
}
export function update_user(param = {}, resParams) { //修改
  return request.JSON_Post('/system/user/update', param, resParams, { loading: true })
}
export function delete_user(param = {}, resParams) { //删除
  return request.JSON_Post('/system/user/deleteById', param, resParams, { loading: true })
}
export function page_user(param = {}, resParams) { //分页查询
  return request.get('/system/user/page', param, resParams, { loading: true })
}
export function getUserInfo_user(param = {}, resParams) { //根据用户id获取信息，包括权限
  return request.get('/web/employee/auth/my', param, resParams, { loading: true })
}
export function countNotConfirm_user(param = {}, resParams) { //设置菜单待确认数量
  return request.get('/system/user/countNotConfirm', param, resParams, { loading: true })
}

//IP黑名单信息 相关接口 

export function listBlack(param = {}, resParams) { //列表
  return request.JSON_Post('/web/ip/black/list', param, resParams, { loading: true })
}
export function getBlack(param = {}, resParams) { //详细
  return request.get('/web/ip/black/detail/'+param, resParams, { loading: true })
}
export function addBlack(param = {}, resParams) { //新增
  return request.JSON_Post('/web/ip/black/add', param, resParams, { loading: true })
}
export function updateBlack(param = {}, resParams) { //修改
  return request.put('/web/ip/black/modify', param, resParams, { loading: true })
}
export function changeBlack(param = {}, resParams) { //启用禁用
  return request.put('/web/ip/black/status/change/', param, resParams, { loading: true })
}
export function delBlack(param = {}, resParams) { //删除
  return request.delete('/web/ip/black/delete/'+ param, resParams, { loading: true })
}
export function delbatchBlack(param = {}, resParams) { //批量删除
  return request.JSON_delete('/web/ip/black/delete/batch', param, resParams, { loading: true })
}

//菜单 相关接口 
export function delMenu(param = {}, resParams) { //删除
  return request.delete('/web/menu/delete/'+ param, resParams, { loading: true })
}
export function delbatchMenu(param = {}, resParams) { //批量删除
  return request.delete('/web/menu/delete/batch'+ param, resParams, { loading: true })
}
export function listMenu(param = {}, resParams) { //列表
  return request.get('/web/menu/list', param, resParams, { loading: true })
}
export function getMenu(param = {}, resParams) { //详细
  return request.get('/web/menu/detail/'+param, resParams, { loading: true })
}
export function addMenu(param = {}, resParams) { //新增
  return request.JSON_Post('/web/menu/add', param, resParams, { loading: true })
}
export function updateMenu(param = {}, resParams) { //修改
  return request.put('/web/menu/modify', param, resParams, { loading: true })
}
export function changeMenu(param = {}, resParams) { //启用禁用
  return request.put('/web/menu/status/change/', param, resParams, { loading: true })
}
//风控规则信息
export function del_RiskRule(param = {}, resParams) { //删除
  return request.delete('/web/risk/control/rules/delete/'+ param, resParams, { loading: true })
}
export function delbatch_RiskRule(param = {}, resParams) { //批量删除
  return request.delete('/web/risk/control/rules/delete/batch'+ param, resParams, { loading: true })
}
export function list_RiskRule(param = {}, resParams) { //列表
  return request.JSON_Post('/web/risk/control/rules/list', param, resParams, { loading: true })
}
export function get_RiskRule(param = {}, resParams) { //详细
  return request.get('/web/risk/control/rules/detail/'+param, resParams, { loading: true })
}
export function test_RiskRule(param = {}, resParams) { //风控测试
  return request.get('/web/risk/control/rules/test/'+param, resParams, { loading: true })
}
export function add_RiskRule(param = {}, resParams) { //新增
  return request.JSON_Post('/web/risk/control/rules/add', param, resParams, { loading: true })
}
export function update_RiskRule(param = {}, resParams) { //修改
  return request.put('/web/risk/control/rules/modify', param, resParams, { loading: true })
}
export function change_RiskRule(param = {}, resParams) { //启用禁用
  return request.put('/web/risk/control/rules/status/change/', param, resParams, { loading: true })
}
//上游商户

export function del_channelMcht(param = {}, resParams) { //删除
  return request.delete('/web/channelMcht/delete/'+ param, resParams, { loading: true })
}
export function delbatch_channelMcht(param = {}, resParams) { //批量删除
  return request.delete('/web/channelMcht/delete/batch'+ param, resParams, { loading: true })
}
export function list_channelMcht(param = {}, resParams) { //列表
  return request.get('/web/channelMcht/list', param, resParams, { loading: true })
}
export function get_channelMcht(param = {}, resParams) { //详细
  return request.get('/web/channelMcht/detail/'+param, resParams, { loading: true })
}
export function test_channelMcht(param = {}, resParams) { //风控测试
  return request.get('/web/channelMcht/test/'+param, resParams, { loading: true })
}
export function add_channelMcht(param = {}, resParams) { //新增
  return request.JSON_Post('/web/channelMcht/add', param, resParams, { loading: true })
}
export function update_channelMcht(param = {}, resParams) { //修改
  return request.put('/web/channelMcht/modify', param, resParams, { loading: true })
}
export function change_channelMcht(param = {}, resParams) { //启用禁用
  return request.put('/web/channelMcht/status/change/', param, resParams, { loading: true })
}
//下游商户
export function del_customer(param = {}, resParams) { //删除
  return request.delete('/web/customer/delete/'+ param, resParams, { loading: true })
}
export function delbatch_customer(param = {}, resParams) { //批量删除
  return request.delete('/web/customer/delete/batch'+ param, resParams, { loading: true })
}
export function list_customer(param = {}, resParams) { //列表
  return request.get('/web/customer/list', param, resParams, { loading: true })
}
export function get_customer(param = {}, resParams) { //详细
  return request.get('/web/customer/detail/'+param, resParams, { loading: true })
}
export function test_customer(param = {}, resParams) { //风控测试
  return request.get('/web/customer/test/'+param, resParams, { loading: true })
}
export function add_customer(param = {}, resParams) { //新增
  return request.JSON_Post('/web/customer', param, resParams, { loading: true })
}
export function update_customer(param = {}, resParams) { //修改
  return request.put('/web/customer/modify', param, resParams, { loading: true })
}
export function change_customer(param = {}, resParams) { //启用禁用
  return request.put('/web/customer/status/change/', param, resParams, { loading: true })
}

//退款订单
export function del_refundOrder(param = {}, resParams) { //删除
  return request.delete('/web/refundOrder/delete/'+ param, resParams, { loading: true })
}
export function delbatch_refundOrder(param = {}, resParams) { //批量删除
  return request.delete('/web/refundOrder/delete/batch'+ param, resParams, { loading: true })
}
export function list_refundOrder(param = {}, resParams) { //列表
  return request.get('/web/refundOrder/list', param, resParams, { loading: true })
}
//提现订单
export function del_withdrawOrder(param = {}, resParams) { //删除
  return request.delete('/web/withdrawOrder/delete/'+ param, resParams, { loading: true })
}
export function delbatch_withdrawOrder(param = {}, resParams) { //批量删除
  return request.delete('/web/withdrawOrder/delete/batch'+ param, resParams, { loading: true })
}
export function list_withdrawOrder(param = {}, resParams) { //列表
  return request.get('/web/withdrawOrder/list', param, resParams, { loading: true })
}
//支付订单
export function del_payOrder(param = {}, resParams) { //删除
  return request.delete('/web/payOrder/delete/'+ param, resParams, { loading: true })
}
export function delbatch_payOrder(param = {}, resParams) { //批量删除
  return request.delete('/web/payOrder/delete/batch'+ param, resParams, { loading: true })
}
export function list_payOrder(param = {}, resParams) { //列表
  return request.get('/web/payOrder/list', param, resParams, { loading: true })
}
export function sync_payOrder(param = {}, resParams) { //同步订单
  return request.JSON_Post('/web/payOrder/sync', param, resParams, { loading: true })
}
export function blackIp_payOrder(param = {}, resParams) { //拉黑ip
  return request.JSON_Post('/web/payOrder/blackIp', param, resParams, { loading: true })
}




